import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SettingComponent } from './pages/setting/setting.component';
import { MenuListComponent } from './pages/menu-list/menu-list.component';

export const routes: Routes = [
  {path: '', pathMatch: 'full', redirectTo: '/setting'},
  {path: 'setting', component: SettingComponent},
  {path: 'menuList', component: MenuListComponent},
  {path: '**', redirectTo: '/setting'},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {
}
